<template>
  <section>
    <p class="p1">如需下载，请长按网址复制后使用浏览器访问</p>
    <p>{{pdf}}</p>
    <yd-button type="primary" @click.native="directBtn()" style="width: 80px;height: 30px;background: #62b900;margin-top: 50px;">在微信中打开</yd-button>
  </section>
</template>

<script>
  export default {
    name: "iosDetail",
    data() {
      return {
        pdf: '',
      }
    },
    methods:{
      directBtn(){
        window.location.href = this.pdf;
      },
    },
    created() {
      let PNGURL = sessionStorage.getItem('PNGURL');
      if (PNGURL != null) {
        this.pdf = PNGURL;
      }

    }
  }
</script>

<style scoped>
.p1{
  margin-top: 50%;
}
  p{
    width: 100%;
    padding: 0 5%;
    margin-bottom: 15px;
    word-wrap: break-word;
  }
</style>
